CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
Sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk
LD=$(CC)
LDFLAGS=-lobjc \
-L$(Sysroot)/usr/lib \
-bind_at_load -F"$(Sysroot)/System/Library/PrivateFrameworks" \
-F"$(Sysroot)/System/Library/Frameworks" \
-framework CoreFoundation \
-framework Foundation \

CFLAGS=-fconstant-cfstrings -std=gnu99 -Wall -O2 \
-I$(Sysroot)/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/ \
-I$(Sysroot)/usr/include \
-isysroot $(Sysroot)

VERSION=1.0

all:    nocyfreshhelper

nocyfreshhelper: nocyfreshhelper.o
	$(LD) $(LDFLAGS) -o $@ $^
	ldid -S nocyfreshhelper

%.o: %.m
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
	   
%.o: %.c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
	rm -f *.o 
